import java.util.Scanner;

public class Test6 {
//从键盘输入3个数（其中一个数用来代表加减乘除的符号，其余两个数用来计算），用来进行加/减/乘/除/取余
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请分别输入3个数：");

        int a = input.nextInt();
        int b = input.nextInt();
        int c = input.nextInt();

        System.out.println("如果b为+-*/%时");
        System.out.println("a+c" + "=" + (a + c));
        System.out.println("a-c" + "=" + (a - c));
        System.out.println("a*c" + "=" + (a * c));
        System.out.println("a/c" + "=" + (a / c));
        System.out.println("a%c" + "=" + (a % c));

        System.out.println("如果a为+-*/%时");
        System.out.println("b+c" + "=" + (a + c));
        System.out.println("b-c" + "=" + (a - c));
        System.out.println("b*c" + "=" + (a * c));
        System.out.println("b/c" + "=" + (a / c));
        System.out.println("b%c" + "=" + (a % c));

        System.out.println("如果c为+-*/%时");
        System.out.println("a+b" + "=" + (a + b));
        System.out.println("a-b" + "=" + (a - b));
        System.out.println("a*b" + "=" + (a * b));
        System.out.println("a/b" + "=" + (a / b));
        System.out.println("a%b" + "=" + (a % b));

    }
}
